Skip to content

Conversation

saqlainkadiri
Copy link

Targeting Issue - #13816

Description - This will add a copy button next to the SHA1 commit text in the commit lists page

Screenshots
Copy Button
Copy Button

On Hover
On Hover Copy Text

After Hover
After Copy Text

@codecov-commenter
Copy link

Codecov Report

Merging #17416 (d4e5518) into main (db89504) will increase coverage by 0.11%.
The diff coverage is 60.32%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main   #17416      +/-   ##
==========================================
+ Coverage   45.16%   45.27%   +0.11%     
==========================================
  Files         784      788       +4     
  Lines       88229    88440     +211     
==========================================
+ Hits        39849    40043     +194     
- Misses      41908    41922      +14     
- Partials     6472     6475       +3     
Impacted Files Coverage Δ
cmd/serv.go 2.46% <0.00%> (ø)
models/db/engine.go 31.25% <0.00%> (ø)
modules/cron/tasks_extended.go 70.16% <0.00%> (ø)
modules/csv/csv.go 73.21% <0.00%> (-2.72%) ⬇️
modules/updatechecker/update_checker.go 0.00% <0.00%> (ø)
routers/common/middleware.go 64.70% <0.00%> (ø)
routers/install/routes.go 45.76% <0.00%> (ø)
routers/web/admin/admin.go 11.34% <0.00%> (ø)
routers/web/base.go 18.00% <0.00%> (ø)
routers/web/repo/projects.go 16.00% <ø> (-0.32%) ⬇️
... and 34 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2a9aefd...d4e5518. Read the comment docs.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Oct 24, 2021
@lunny lunny added type/enhancement An improvement of existing functionality topic/ui Change the appearance of the Gitea UI labels Oct 24, 2021
@lunny lunny added this to the 1.16.0 milestone Oct 24, 2021
@lunny
Copy link
Member

lunny commented Oct 24, 2021

There is a bug with commit signer icon.
image

@@ -1057,6 +1057,9 @@ commits.search.tooltip = You can prefix keywords with "author:", "committer:", "
commits.find = Search
commits.search_all = All Branches
commits.author = Author
commits.copy_sha_text = Copy
commits.copy_sha_success = SHA1 has been copied
commits.copy_sha_error = Use ⌘C or Ctrl-C to copy
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should use the more generic Commit ID instead of SHA or SHA1

@@ -47,6 +47,16 @@
<span class="{{$class}}">
{{end}}
<span class="shortsha">{{ShortSha .ID.String}}</span>
<span class="clipboard"
data-original="{{$.i18n.Tr "repo.commits.copy_sha_text"}}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

data-original has no effect now and shouldn't be used.

@wxiaoguang
Copy link
Contributor

@wxiaoguang wxiaoguang closed this Nov 22, 2021
@go-gitea go-gitea locked and limited conversation to collaborators Apr 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. topic/ui Change the appearance of the Gitea UI type/enhancement An improvement of existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants